// CSE532 - msg-handler.h                                                 
// Authors: Guangle Fan                         
// MsgFlag class which marks starting and finishing point of sending message 

#include "msg-flag.h"

int MsgFlag::Num_ = 0;

bool MsgFlag::getFlag() {
  if (Num_ <= 0) {
    return false;
  }
  return true;
}

int MsgFlag::getNum() {
  return Num_;
}

void MsgFlag::dcrNum() {
  --Num_;
}

void MsgFlag::icrNum() {
  ++Num_;
}
